package com.pactera.miyuangroup.vo.convertor;

import com.pactera.miyuangroup.db.entity.LoginUser;
import com.pactera.miyuangroup.db.entity.VendorInfo;
import com.pactera.miyuangroup.vo.response.app.AppVendorInfoRes;
import com.pactera.miyuangroup.vo.response.web.VehicleInfoRes;
import com.pactera.miyuangroup.vo.response.web.VendorInfoRes;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface VendorInfoConvert {
    /**
     * 批量数据库转页面对象
     *
     * @param
     * @return
     */

    List<VendorInfoRes> convert2VehicleInfoRes(List<VendorInfo> vendorInfos);


    @Mapping(source = "obj1.id", target = "id")
    AppVendorInfoRes convert2AppVendorInfoRes(VendorInfo obj1, LoginUser obj2);
}
